Mongo Info
data class MongoInfo(var mongoAddress: String = if (System.getenv("DB_CONNECTION_ADDRESS") == null) {
"mongodb://localhost:27017"
} else {
System.getenv(
"DB_CONNECTION_ADDRESS",
)
}, val databaseName: String = "Warehouse", val collectionName: String = "Ingredient")
Data class that contains the information necessary to connect to the database
Parameters
mongo Address
port to connect
database Name
name of the database
collection Name
name of the collection